/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.express.entity;

import com.jeeplus.modules.member.entity.Member;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.ordersstore.entity.OrdersStore;

/**
 * 发货信息Entity
 * @author lxj
 * @version 2020-11-10
 */
public class Express extends DataEntity<Express> {
	
	private static final long serialVersionUID = 1L;
	private Member member;		// 用户id
	private String gongsId;		// 快递公司id
	private String orderForm;		// 快递单号
	private Date time;		// 发货时间
	private OrdersStore ordersstore;		// 商品订单编号
	private String founder;		// 操作员信息
	private String exportTime;//导出时间
	
	public Express() {
		super();
	}

	public Express(String id){
		super(id);
	}

	@ExcelField(title="用户id", fieldType=Member.class, value="member.loginName", align=2, sort=1)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="快递公司id", align=2, sort=2)
	public String getGongsId() {
		return gongsId;
	}

	public void setGongsId(String gongsId) {
		this.gongsId = gongsId;
	}
	
	@ExcelField(title="快递单号", align=2, sort=3)
	public String getOrderForm() {
		return orderForm;
	}

	public void setOrderForm(String orderForm) {
		this.orderForm = orderForm;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ExcelField(title="发货时间", align=2, sort=4)
	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
	
	@ExcelField(title="商品订单编号", fieldType=OrdersStore.class, value="ordersstore.ordersNo", align=2, sort=5)
	public OrdersStore getOrdersstore() {
		return ordersstore;
	}

	public void setOrdersstore(OrdersStore ordersstore) {
		this.ordersstore = ordersstore;
	}
	
	@ExcelField(title="操作员信息", align=2, sort=6)
	public String getFounder() {
		return founder;
	}

	public void setFounder(String founder) {
		this.founder = founder;
	}

	@Override
	public String toString() {
		return "Express{" +
				"member=" + member +
				", gongsId='" + gongsId + '\'' +
				", orderForm='" + orderForm + '\'' +
				", time=" + time +
				", ordersstore=" + ordersstore +
				", founder='" + founder + '\'' +
				'}';
	}
}